package com.databaseManager;

/**
 * @author addzero
 * @version 1.0
 * 专家预约单实体类
 * {@inheritDoc}
 */
public class ProOrder extends Order{
    private String Eid;
    private String DepName;

    /**
     *ProOrder类构造函数
     * @param eid 专家身份证号，长度为18位
     * @see Order#Order(long, String, String)
     * @throws Exception
     */
    public ProOrder(long PRid, String pid, String PTime, String eid) throws Exception {
        super(PRid, pid, PTime);
        Eid = eid;
        DatabaseFunc df = new DatabaseFunc();
        DepName = df.findDepartment(eid, SqlOP.GETNAMEBYEID);
    }

    public String getEid() {
        return Eid;
    }

    public String getDepName() {
        return DepName;
    }

}
